package cn.gson.school.dao.xitong;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import cn.gson.school.entity.xitong.RoleEntity;

@Repository
public interface UserAddDao extends CrudRepository<RoleEntity, Long>{

	@Query(nativeQuery=true,value="select r.role_id from tb_xt_role r where r.role_name=?1")
	Long xtUserId(String roleName);
}
